.questionCard {
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.questionHeader {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.questionType {
  font-size: 16px;
  margin-right: 12px;
}

.questionDifficulty {
  margin-left: auto;
}

.questionContent {
  margin-bottom: 24px;
  background-color: white;
  border-radius: 4px;
  overflow: visible;
}

/* 确保 MDEditor 内容可见和自适应高度 */
.questionContent :global(.w-md-editor) {
  box-shadow: none !important;
  border: none !important;
  height: auto !important;
  min-height: auto !important;
  background: transparent !important;
}

.questionContent :global(.w-md-editor-toolbar) {
  display: none !important;
}

.questionContent :global(.w-md-editor-content) {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

.questionContent :global(.w-md-editor-preview) {
  position: static !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  border: none !important;
}

.questionContent :global(.wmde-markdown) {
  background: transparent !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* 隐藏编辑相关元素 */
.questionContent :global(.w-md-editor-text),
.questionContent :global(.w-md-editor-text-pre),
.questionContent :global(.w-md-editor-text-input) {
  display: none !important;
}

.optionsContainer {
  margin-top: 20px;
  margin-bottom: 16px;
  padding: 0;
  background-color: transparent;
  border-radius: 4px;
}

.optionsList {
  width: 100%;
}

.codeBlock {
  margin-bottom: 16px;
  background-color: #f6f8fa;
  border-radius: 4px;
  overflow: hidden;
}

.codeHeader {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.code {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.adminInfo {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.answerExplanation {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  padding: 12px 16px;
  border-radius: 4px;
}

.explanationContent {
  margin-top: 8px;
  white-space: pre-wrap;
}

/* 数学公式在题目中的样式 */
.questionContent :global(.katex-display) {
  margin: 1em 0;
  text-align: center;
}

.questionContent :global(.katex) {
  font-size: 1.1em;
}

/* 选择题选项样式优化 */
.optionItem {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  user-select: none;
}

.optionItem:hover {
  border-color: #1890ff;
  background: #f0f8ff;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
}

.optionItem.selected {
  border-color: #1890ff;
  background: #e6f7ff;
}

.optionItem :global(.ant-radio),
.optionItem :global(.ant-checkbox) {
  margin-right: 12px;
  flex-shrink: 0;
}

.optionItem :global(.ant-radio-wrapper),
.optionItem :global(.ant-checkbox-wrapper) {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.optionItem :global(.ant-radio-inner),
.optionItem :global(.ant-checkbox-inner) {
  width: 16px;
  height: 16px;
}

.optionContent {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #262626;
  cursor: pointer;
  padding-left: 8px;
} 